/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package Clases.impl;

import Clases.ClasesPackage;
import Clases.Operador_O;
import Clases.Pointcut_Elemento;

import java.util.Collection;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.util.EObjectResolvingEList;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Operador O</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link Clases.impl.Operador_OImpl#getOpera_sobre <em>Opera sobre</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class Operador_OImpl extends Operador_PointcutImpl implements Operador_O {
	/**
	 * The cached value of the '{@link #getOpera_sobre() <em>Opera sobre</em>}' reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getOpera_sobre()
	 * @generated
	 * @ordered
	 */
	protected EList<Pointcut_Elemento> opera_sobre;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Operador_OImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return ClasesPackage.Literals.OPERADOR_O;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Pointcut_Elemento> getOpera_sobre() {
		if (opera_sobre == null) {
			opera_sobre = new EObjectResolvingEList<Pointcut_Elemento>(Pointcut_Elemento.class, this, ClasesPackage.OPERADOR_O__OPERA_SOBRE);
		}
		return opera_sobre;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case ClasesPackage.OPERADOR_O__OPERA_SOBRE:
				return getOpera_sobre();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case ClasesPackage.OPERADOR_O__OPERA_SOBRE:
				getOpera_sobre().clear();
				getOpera_sobre().addAll((Collection<? extends Pointcut_Elemento>)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case ClasesPackage.OPERADOR_O__OPERA_SOBRE:
				getOpera_sobre().clear();
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case ClasesPackage.OPERADOR_O__OPERA_SOBRE:
				return opera_sobre != null && !opera_sobre.isEmpty();
		}
		return super.eIsSet(featureID);
	}

} //Operador_OImpl
